<?php
include_once 'buslibs/users2.php';
?>
<htm>
    <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
    <body>
        <h1>Διαγραφή χρήστη</h1>
        <form method="POST">
           <input type="text" name="username" />
           <input type="submit" name="delUserButton" />            
        </form>
    </body>
</html>
<?php 
    $userDeleted = FALSE;
    $username=NULL;
    $delUserButton=FALSE;
    if (key_exists("username", $_POST)) $username = $_POST["username"];
    if (key_exists("delUserButton", $_POST)) $delUserButton = $_POST["delUserButton"];
    
    if ($delUserButton)
    {
        $userDeleted= user_delete($username);
        //TODO : delete user feedback
    }
?>
            